/*
 * @Author: bianwangyang bianwy025@qq.com
 * @Date: 2023-11-02 19:59:15
 * @LastEditors: bianwangyang bianwy025@qq.com
 * @LastEditTime: 2023-11-02 23:06:10
 */
import express from "express";
import childProcess from "child_process";

const app = express();

app.get("*", (req, res) => {
  res.send(`
    <html>
      <body>
        <div>hello-ssr 3</div>
      </body>
    </html>
  `);
});

app.listen(3000, () => {
  console.log("ssr-server listen on 3000");
});

childProcess.exec("start http://127.0.0.1:3000");
